package top.z.orm.core.osql;

/**
 * 对象到SQL的转换(对应Suid),根据entity对象转换成DB能识别的sql语句(包括:select,update,insert,delete), entity 参数不能为null
 */
public interface ObjToSQL {

    <T> String toSelectSQL(T entity);

    <T> String toUpdateSQL(T entity);

    <T> String toInsertSQL(T entity);

    <T> String toDeleteSQL(T entity);

    <T> String toSelectSQL(T entity, Condition condition);

    <T> String toDeleteSQL(T entity, Condition condition);

}